﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"
	x:Class="UserInterface.ProductList"
	x:Name="Window"
	Title="Product List"
	Width="640" Height="480" Loaded="Window_Loaded" 
	Background="#F8F8F8"
	 FontFamily="Segoe UI">



	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="0.15*"/>
			<RowDefinition Height="0.215*"/>
			<RowDefinition Height="0.635*"/>
			<RowDefinition Height="35"/>
		</Grid.RowDefinitions>		     
		
		<Label Grid.Row="0" FontFamily="Segoe" FontWeight="Bold" FontSize="42" Foreground="#555" Margin="10,2,153,2" VerticalAlignment="Stretch" Content="AUSRIS " />

		<GroupBox Margin="10,8,0,0" Grid.Row="1" Header="Search CourseSection" Height="81.87" VerticalAlignment="Top" HorizontalAlignment="Left" Width="612">
			<Grid HorizontalAlignment="Left" Width="604">
				<Label Content="Course Section Name" Foreground="#FF555555" Width="127.02" FontWeight="Bold" HorizontalAlignment="Left" Margin="10,22,0,0" VerticalAlignment="Top" d:LayoutOverrides="GridBox" />
				<Label Content="Term" Foreground="#FF555555" Width="44.02" d:LayoutOverrides="Height, GridBox" FontWeight="Bold" HorizontalAlignment="Left" Margin="93,0.08,0,21" />
				<ComboBox  x:Name="CategoryComboBox" DisplayMemberPath="Name" TabIndex="1" d:LayoutOverrides="VerticalAlignment, Height, GridBox" Margin="153,4.08,285,21" />
				<TextBox Text="" TextWrapping="Wrap" x:Name="NameTextBox" TabIndex="2" Margin="153,23.08,285,2" d:LayoutOverrides="VerticalAlignment, GridBox" />
				<Button Content="Search" Width="80" Click="BtnSearch_Click"  TabIndex="3" d:LayoutOverrides="VerticalAlignment, Width, Height, GridBox" HorizontalAlignment="Right" Margin="0,0,199,2" VerticalAlignment="Bottom" Height="20"/>

			</Grid>
		</GroupBox>


	  

		<ListView x:Name="ProductsListView" Grid.Row="2"  Margin="10,10,10,10" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch">
			<ListView.View>
				<GridView>
					<GridViewColumn Header="ID" DisplayMemberBinding="{Binding Id}" />
					<GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}"/>
					<GridViewColumn Header="Term" DisplayMemberBinding="{Binding au_Term.Name}"/>
					<GridViewColumn Header="Catalog" DisplayMemberBinding="{Binding au_Catalog.Name}"/>
				</GridView>
			</ListView.View>
		</ListView>

		<Button Grid.Row="3" HorizontalAlignment="Right" Margin="0,0,120,10" x:Name="btnNewProduct" Click="BtnNewProduct_Click" VerticalAlignment="Bottom" d:LayoutOverrides="Height" Width="100" Content="New Product"/>
		<Button HorizontalAlignment="Right" Margin="0,0,10,10" x:Name="btnDeleteProduct" Width="100" Grid.Row="3" Click="BtnDeleteProduct_Click" VerticalAlignment="Bottom" Content="Delete Product"/>
		<Image HorizontalAlignment="Right" Margin="0,2,10,0" Source="OEMLogo.bmp" Stretch="Fill" Width="76"/>

	</Grid>
</Window>